package com.my.bootweb01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * @author zhupanlin
 * @version 1.0
 * @description: TODO
 * @date 2023/11/7 18:42
 */
@RestController
public class HelloController {

    @GetMapping("/user")
    public String getUser(){
        return "GET-张三";
    }

    @PostMapping("/user")
    public String saveUser(){
        return "Post-张三";
    }

    @PutMapping("/user")
    public String editUser(){
        return "Put-张三";
    }

    @DeleteMapping("/user")
    public String deleteUser(){
        return "Delete-张三";
    }



}
